package com.atguigu.gmall.item.feign;


import com.atguigu.gmall.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-item")
public interface ItemFeignClient {

    //查询商品详情页面所需要的数据
    @GetMapping("/api/item/{skuId}")
    public Result getItem(@PathVariable(name = "skuId") Long skuId);
}
